package org.fhawk.tinyspring.core.support;

public class DefaultClassTemplate extends ClassTemplate {

    public DefaultClassTemplate(String basePackage) {
        super(basePackage);
    }

    @Override
    public boolean checkAddClass(Class<?> cls) {
        String className = cls.getName();
        String pkgName = className.substring(0, className.lastIndexOf(""));
        return pkgName.startsWith(super.basePackage);
    }
}
